var express = require("express");
var path = require("path");
var router = express.Router();
const multer = require("multer");
var boardController = require(path.join(
  process.cwd(),
  "/controller/boardController"
));

/* GET home page. */
router.post("/createOneBoard", boardController.createOneBoard);

router.get("/getBoards", boardController.getBoards);

router.delete("/deleteOneBoard", boardController.deleteOneBoard);

router.post("/updateOneBoards", boardController.updateOneBoards);

router.post("/findBoards", boardController.findBoards);

module.exports = router;
